<template>
	<view class="container">
		<!-- 头部导航栏 -->
		<view class="header">
			<view class="nav-back" @click="goBack">
				<uv-icon name="arrow-left" size='32'></uv-icon>
			</view>
			<text class="header-title">我的消息</text>
		</view>
		<view class="meg">
			<view class="meg-item">
				<image src="/static/images/my/message/sound.png" mode=""></image>
				<view>
					<text>新书上架啦！新书上架啦！新书上架啦！新书上架啦</text>
					<text>2小时</text>
				</view>
				<uv-icon name="arrow-right" size="28"></uv-icon>
			</view>
			
			<view class="meg-item">
				<image src="/static/images/my/message/sound.png" mode=""></image>
				<view>
					<text>新书上架啦！新书上架啦！新书上架啦！新书上架啦</text>
					<text>2小时</text>
				</view>
				<uv-icon name="arrow-right" size="28"></uv-icon>
			</view>
			<view class="meg-item">
				<image src="/static/images/my/message/sound.png" mode=""></image>
				<view>
					<text>新书上架啦！新书上架啦！新书上架啦！新书上架啦</text>
					<text>2小时</text>
				</view>
				<uv-icon name="arrow-right" size="28"></uv-icon>
			</view>
			<view class="meg-item">
				<image src="/static/images/my/message/sound.png" mode=""></image>
				<view>
					<text>新书上架啦！新书上架啦！新书上架啦！新书上架啦</text>
					<text>2小时</text>
				</view>
				<uv-icon name="arrow-right" size="28"></uv-icon>
			</view>
			<view class="meg-item">
				<image src="/static/images/my/message/sound.png" mode=""></image>
				<view>
					<text>新书上架啦！新书上架啦！新书上架啦！新书上架啦</text>
					<text>2小时</text>
				</view>
				<uv-icon name="arrow-right" size="28"></uv-icon>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			goBack() {
				uni.navigateBack()
			},
		}
	}
</script>

<style scoped lang="scss">
	.container {
		background-color: #f6f8fa;
	}

	/* 头部导航栏样式 */
	.header {
		display: flex;
		align-items: center;
		padding: 24rpx 0;
		background: #fff;
		position: relative;

		.nav-back {
			width: 88rpx;
			padding-left: 32rpx;
		}

		.header-title {
			position: absolute;
			left: 50%;
			transform: translateX(-50%);
			font-size: 36rpx;
			color: #333;
			white-space: nowrap;
		}
	}

	// 消息区域
	.meg {
		padding: 20px;
		
		.meg-item {
			display: flex;
			justify-content: center;
			height: 150rpx;
			border-bottom: 1px solid #aaa;
			padding-top: 20rpx;
			
			image {
				width: 20px;
				height: 20px;
			}
			
			view{
				display: flex;
				flex-direction: column;
				padding-left: 20rpx;
				
				>text:nth-of-type(2){
					color: #aaa;
				}
			}
		}
	}
</style>